﻿<%@ Page Title="" Language="C#" MasterPageFile="~/master/m.master" AutoEventWireup="true" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../assets/css/plugins/iCheck/custom.css" rel="stylesheet" />
    <link href="../assets/css/shelf/addshop.css" rel="stylesheet" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="main" runat="Server">
    <div class="add-shop-page">
        <form id="checkModuleForm">
            <div class="base-info">
                <div class="panel panel-default">
                    <div class="panel-heading">必填项<span style="color: #f00;">*</span></div>
                    <table class="shop-info" cellpadding="0" cellspacing="0">
                        <thead></thead>
                        <tbody>
                            <tr>
                                <td>
                                    <div class="form-group">
                                        <label class="control-label">店铺编号<span style="color: #f00;">*</span></label>
                                        <input id="ShopCode" name="ShopCode" placeholder="请输入店铺编号" readonly
                                            maxlength="10" class="form-control input-text" />
                                    </div>
                                </td>
                                <td>
                                    <div class="form-group">
                                        <label class="control-label">店铺简称<span style="color: #f00;">*</span></label>
                                        <input id="ShopName" name="ShopName" placeholder="请输入店铺简称" readonly
                                            maxlength="10" class="form-control input-text" />
                                    </div>
                                </td>
                                <td>
                                    <div class="form-group">
                                        <label class="control-label">营业状态<span style="color: #f00;">*</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
                                        <select id="BusinessStatus" class="form-control m-b col-select">
                                            <option value="关闭">关闭</option>
                                            <option value="营业">营业</option>
                                        </select>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div class="form-group">
                                        <label class="control-label">营业面积<span style="color: #f00;">*</span></label>
                                        <input id="BusinessArea" class="form-control layer-date input-text"
                                            placeholder="营业面积" />
                                    </div>
                                </td>
                                <td>
                                    <div class="form-group">
                                        <label class="control-label">仓库面积<span style="color: #f00;">*</span></label>
                                        <input id="WarehouseArea" name="WarehouseArea" placeholder="仓库面积"
                                            maxlength="10" class="form-control input-text" />
                                    </div>
                                </td>
                                <td>
                                    <div class="form-group">
                                        <label class="control-label">物流时间天<span style="color: #f00;">*</span>&nbsp;&nbsp;&nbsp;</label>
                                        <input id="LogisticsTimeDay" name="LogisticsTimeDay" placeholder="物流时间天"
                                            maxlength="10" class="form-control input-text" />
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div class="form-group">
                                        <label class="control-label">店铺形象<span style="color: #f00;">*</span></label>
                                        <select id="StoreImage" name="StoreImage" class="form-control m-b col-select">
                                            <option value="第二代">第二代</option>
                                            <option value="第一代">第一代</option>
                                            <option value="老一代">老一代</option>
                                        </select>
                                    </div>
                                </td>
                                <td>
                                    <div class="form-group">
                                        <label class="control-label">经营业态<span style="color: #f00;">*</span></label>
                                        <select id="OperatingFormat" name="OperatingFormat" class="form-control m-b col-select">
                                            <option value="购物中心">购物中心</option>
                                            <option value="地铺">地铺</option>
                                            <option value="街铺">街铺</option>
                                        </select>
                                    </div>
                                </td>
                                <td>
                                    <div class="form-group">
                                        <label class="control-label">隶属运营区域<span style="color: #f00;">*</span></label>
                                        <select id="SubordinateArea" name="SubordinateArea" class="form-control m-b col-select" placeholder="请输入隶属运营区域">
                                            <option value="零售1部">零售1部</option>
                                            <option value="零售2部">零售2部</option>
                                            <option value="零售3部">零售3部</option>
                                            <option value="零售4部">零售4部</option>
                                            <option value="零售5部">零售5部</option>
                                            <option value="零售6部">零售6部</option>
                                            <option value="零售7部">零售7部</option>
                                            <option value="零售8部">零售8部</option>
                                            <option value="零售9部">零售9部</option>
                                            <option value="零售10部">零售10部</option>
                                        </select>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div class="form-group">
                                        <label class="control-label">经营模式<span style="color: #f00;">*</span></label>
                                        <select id="BusinessModel" class="form-control m-b col-select">
                                            <option value="加盟">加盟</option>
                                            <option value="联营">联营</option>
                                            <option value="直营">直营</option>
                                        </select>
                                    </div>
                                </td>
                                <td>
                                    <div class="form-group">
                                        <label class="control-label">陈列级别<span style="color: #f00;">*</span></label>
                                        <select id="Levels" class="form-control m-b col-select">
                                        </select>
                                    </div>
                                </td>
                                <td>
                                    <div class="form-group">
                                        <label class="control-label">店铺销售级别<span style="color: #f00;">*</span></label>
                                        <select id="ShopLevels" class="form-control m-b col-select">
                                        </select>
                                    </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>

                </div>
                <div class="panel panel-default">
                    <div class="panel-heading">店铺系数</div>
                    <table class="shop-info" cellpadding="0" cellspacing="0">
                        <thead></thead>
                        <tbody>
                            <tr>
                                <td>
                                    <div class="form-group">
                                        <label class="control-label">学生消费群体</label>
                                        <input id="ConsumerGroupsOfStudent" name="ConsumerGroupsOfStudent" placeholder="学生消费群体"
                                            maxlength="10" class="form-control input-text" />
                                    </div>
                                </td>
                                <td>
                                    <div class="form-group">
                                        <label class="control-label">蓝领消费群体</label>
                                        <input id="ConsumerGroupsOfBlueCollar" name="ConsumerGroupsOfBlueCollar" placeholder="蓝领消费群体"
                                            maxlength="10" class="form-control input-text" />
                                    </div>
                                </td>
                                <td>
                                    <div class="form-group">
                                        <label class="control-label">白领消费群体</label>
                                        <input id="ConsumerGroupsOfWhiteCollar" name="ConsumerGroupsOfWhiteCollar" placeholder="白领消费群体"
                                            maxlength="10" class="form-control input-text" />
                                    </div>
                                </td>

                            </tr>
                            <tr>
                                <td>
                                    <div class="form-group">
                                        <label class="control-label">旅游消费群体</label>
                                        <input id="ConsumerGroupsOfVisitor" name="ConsumerGroupsOfVisitor" placeholder="旅游消费群体"
                                            maxlength="10" class="form-control input-text" />
                                    </div>
                                </td>
                                <td>
                                    <div class="form-group">
                                        <label class="control-label">年龄层18-22&nbsp;&nbsp;</label>
                                        <input id="AgeGroup18To22" name="AgeGroup18To22" placeholder="年龄层18-22"
                                            maxlength="10" class="form-control input-text" />
                                    </div>
                                </td>
                                <td>
                                    <div class="form-group">
                                        <label class="control-label">年龄层23-27&nbsp;&nbsp;</label>
                                        <input id="AgeGroup23To27" name="AgeGroup23To27" placeholder="年龄层23-27"
                                            maxlength="10" class="form-control input-text" />
                                    </div>
                                </td>

                            </tr>
                            <tr>
                                <td>
                                    <div class="form-group">
                                        <label class="control-label">年龄层28-34&nbsp;&nbsp;</label>
                                        <input id="AgeGroup28To34" name="AgeGroup28To34" placeholder="年龄层28-34"
                                            maxlength="10" class="form-control input-text" />
                                    </div>
                                </td>
                                <td>
                                    <div class="form-group">
                                        <label class="control-label">年龄层35-40&nbsp;&nbsp;</label>
                                        <input id="AgeGroup35To40" name="AgeGroup35To40" placeholder="年龄层35-40"
                                            maxlength="10" class="form-control input-text" />
                                    </div>
                                </td>
                                <td>
                                    <div class="form-group">
                                        <label class="control-label">休闲系列&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
                                        <input id="LeisureSeries" name="LeisureSeries" placeholder="休闲系列"
                                            maxlength="10" class="form-control input-text" />
                                    </div>
                                </td>

                            </tr>
                            <tr>
                                <td>
                                    <div class="form-group">
                                        <label class="control-label">精英系列&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
                                        <input id="EliteSeries" name="EliteSeries" placeholder="精英系列"
                                            maxlength="10" class="form-control input-text" />
                                    </div>
                                </td>
                                <td>
                                    <div class="form-group">
                                        <label class="control-label">创意系列&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
                                        <input id="CreativeSeries" name="CreativeSeries" placeholder="创意系列"
                                            maxlength="10" class="form-control input-text" />
                                    </div>
                                </td>
                                <td></td>
                            </tr>
                        </tbody>
                    </table>
                </div>

                <div class="panel panel-default">
                    <div class="panel-heading">基本资料</div>
                    <table class="shop-info" cellpadding="0" cellspacing="0">
                        <thead></thead>
                        <tbody>
                            <tr>
                                <td>
                                    <div class="form-group">
                                        <label class="control-label">年份&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
                                        <select id="Year" class="form-control m-b col-select">
                                            <option value="2016">2016</option>
                                            <option value="2017">2017</option>
                                            <option value="2018">2018</option>
                                            <option value="2019">2019</option>
                                            <option value="2020">2020</option>
                                            <option value="2021">2021</option>
                                        </select>
                                    </div>
                                </td>
                                <td>
                                    <div class="form-group">
                                        <label class="control-label">季节&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
                                        <select id="Season" class="form-control m-b col-select">
                                            <option value="春">春</option>
                                            <option value="夏">夏</option>
                                            <option value="秋">秋</option>
                                            <option value="冬">冬</option>
                                        </select>
                                    </div>
                                </td>
                                <td>
                                    <div class="form-group">
                                        <label class="control-label">商圈级别</label>
                                        <input id="BusinessDistrictLevel" name="BusinessDistrictLevel" placeholder="商圈级别"
                                            maxlength="10" class="form-control input-text" />
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div class="form-group">
                                        <label class="control-label">客群特征</label>
                                        <input id="FixedFlow" name="FixedFlow" placeholder="客群特征"
                                            maxlength="10" class="form-control input-text" />
                                    </div>
                                </td>
                                <td>
                                    <div class="form-group">
                                        <label class="control-label">商圈类型</label>
                                        <input id="BusinessDistrictType" name="BusinessDistrictType" placeholder="商圈类型"
                                            maxlength="10" class="form-control input-text" />
                                    </div>
                                </td>
                                <td>
                                    <div class="form-group">
                                        <label class="control-label">款量需求</label>
                                        <input id="StyleNumber" name="StyleNumber" placeholder="款量需求"
                                            maxlength="10" class="form-control input-text" />
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div class="form-group">
                                        <label class="control-label">开业日期</label>
                                        <input id="OpeningDate" class="form-control layer-date input-text"
                                            placeholder="开业日期" />
                                    </div>
                                </td>
                                <td>
                                    <div class="form-group">
                                        <label class="control-label">关店日期</label>
                                        <input id="CloseDate" class="form-control layer-date input-text"
                                            placeholder="关店日期" />
                                    </div>
                                </td>
                                <td>
                                    <div class="form-group">
                                        <label class="control-label">停业日期</label>
                                        <input id="SuspensionDate" class="form-control layer-date input-text"
                                            placeholder="停业日期" />
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div class="form-group">
                                        <label class="control-label">复业日期</label>
                                        <input id="ResumptionDate" class="form-control layer-date input-text"
                                            placeholder="复业日期" />
                                    </div>
                                </td>
                                <td>
                                    <div class="form-group address-info">
                                        <label class="control-label">省份&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
                                        <select id="Province" class="form-control m-b col-select province"></select>
                                    </div>
                                </td>
                                <td>
                                    <div class="form-group address-info">
                                        <label class="control-label">城市&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
                                        <select id="City" class="form-control m-b col-select"></select>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="3">
                                    <div class="form-group">
                                        <label class="control-label">特别备注</label>
                                        <textarea id="SpecialNote" name="SpecialNote" placeholder="在此输入备注说明"
                                            class="form-control input-textarea"></textarea>
                                    </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>

            <div class="control">
                <button type="button" class="btn btn-white closeBtn">关闭</button>
                <button type="button" class="btn btn-primary" id="save">保存</button>
            </div>
        </form>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="footer" runat="Server">
    <script src="../assets/js/plugins/layer/laydate/laydate.js"></script>
    <script src="../assets/js/plugins/iCheck/icheck.min.js"></script>
    <script src="../assets/js/page/addressConfig.js"></script>
    <script src="../assets/js/common.js"></script>
    <script type="application/javascript">
        $(document).ready(function () {

            //获取店铺id
            var sid = Y.getUrlParam('id');

            //限制textarea输入字数
            commonUtil.inputLimitForId('SpecialNote', 500);

            //绑定店铺销售级别
            commonUtil.getShopLevels(['#ShopLevels','#Levels']);

            //关闭当前标签页
            var closeActiveTab = function () {
                var closeBtn = $('.J_menuTab.active i', window.parent.document);
                closeBtn.click();
            }
            $('.closeBtn').click(function () {
                closeActiveTab();
            });

            //初始化日期控件
            laydate({
                elem: "#OpeningDate",
                format: "YYYY-MM-DD",
                min: "2000-01-01",
                max: "2099-12-01",
                istime: true,
                istoday: false,
                choose: function (datas) {
                    start.min = datas
                }
            });
            //初始化日期控件
            laydate({
                elem: "#CloseDate",
                format: "YYYY-MM-DD",
                min: "2000-01-01",
                max: "2099-12-01",
                istime: true,
                istoday: false,
                choose: function (datas) {
                    start.min = datas
                }
            });
            //初始化日期控件
            laydate({
                elem: "#SuspensionDate",
                format: "YYYY-MM-DD",
                min: "2000-01-01",
                max: "2099-12-01",
                istime: true,
                istoday: false,
                choose: function (datas) {
                    start.min = datas
                }
            });
            //初始化日期控件
            laydate({
                elem: "#ResumptionDate",
                format: "YYYY-MM-DD",
                min: "2000-01-01",
                max: "2099-12-01",
                istime: true,
                istoday: false,
                choose: function (datas) {
                    start.min = datas
                }
            });
            //初始化省份
            addressConfig.p.map(function (item) {
                $('#Province').append('<option value="' + item + '">' + item + '</option>');
            });
            //加载城市
            var loadCity = function (p) {
                var p = $('#Province').val();
                $('#City').empty();
                addressConfig['c'][p].map(function (item) {
                    $('#City').append('<option value="' + item + '">' + item + '</option>');
                })
            };
            //初始化城市
            loadCity();
            //选择省份
            $('#Province').change(function () {
                //填充城市
                loadCity();
            });

            //获取用户信息
            //layer.msg('玩命加载中……', { icon: 16, shade: 0.5, time: 0, maxWidth: 200 });
            Y.API2('Shop', 'GetID', {
                ID: sid,
            }, function (data) {
                if (data.Success == false) {
                    layer.closeAll('dialog');
                    swal(data.Message, '', 'error');
                } else {
                    $("#Year").val(data.Year);
                    $("#Season").val(data.Season);
                    $("#ShopCode").val(data.ShopCode);
                    $("#Levels").val(data.Levels);
                    $("#ModifyDate").val(data.ModifyDate);
                    $("#IsRemove").val(data.IsRemove);
                    $("#Operator").val(data.Operator);
                    $("#CreateDate").val(data.CreateDate);
                    $("#ShopLevels").val(data.ShopLevels);
                    $("#ShopName").val(data.ShopName);
                    $("#SubordinateArea").val(data.SubordinateArea);
                    $("#BusinessStatus").val(data.BusinessStatus);
                    $("#BusinessModel").val(data.BusinessModel);
                    $("#BusinessArea").val(data.BusinessArea);
                    $("#WarehouseArea").val(data.WarehouseArea);
                    $("#LogisticsTimeDay").val(data.LogisticsTimeDay);
                    $("#StoreImage").val(data.StoreImage);
                    $("#BusinessDistrictLevel").val(data.BusinessDistrictLevel);
                    $("#OperatingFormat").val(data.OperatingFormat);
                    $("#BusinessDistrictType").val(data.BusinessDistrictType);
                    $("#ConsumerGroupsOfStudent").val(data.ConsumerGroupsOfStudent);
                    $("#ConsumerGroupsOfBlueCollar").val(data.ConsumerGroupsOfBlueCollar);
                    $("#ConsumerGroupsOfWhiteCollar").val(data.ConsumerGroupsOfWhiteCollar);
                    $("#ConsumerGroupsOfVisitor").val(data.ConsumerGroupsOfVisitor);
                    $("#AgeGroup18To22").val(data.AgeGroup18To22);
                    $("#AgeGroup23To27").val(data.AgeGroup23To27);
                    $("#AgeGroup28To34").val(data.AgeGroup28To34);
                    $("#AgeGroup35To40").val(data.AgeGroup35To40);
                    $("#LeisureSeries").val(data.LeisureSeries);
                    $("#EliteSeries").val(data.EliteSeries);
                    $("#CreativeSeries").val(data.CreativeSeries);
                    $("#StyleNumber").val(data.StyleNumber);
                    $("#FixedFlow").val(data.FixedFlow);
                    $("#SpecialNote").val(data.SpecialNote);

                    if (data.OpeningDate != null) {
                        $("#OpeningDate").val(data.OpeningDate.substring(0, 10));
                    }
                    if (data.CloseDate != null) {
                        $("#CloseDate").val(data.CloseDate.substring(0, 10));
                    }
                    if (data.SuspensionDate != null) {
                        $("#SuspensionDate").val(data.SuspensionDate.substring(0, 10));
                    }
                    if (data.ResumptionDate != null) {
                        $("#ResumptionDate").val(data.ResumptionDate.substring(0, 10));
                    }
                    /*
                    $("#OpeningDate").val(data.OpeningDate.substring(0, 10));
                    $("#CloseDate").val(data.CloseDate.substring(0, 10));
                    $("#SuspensionDate").val(data.SuspensionDate.substring(0, 10));
                    $("#ResumptionDate").val(data.ResumptionDate.substring(0, 10));
                    */
                    if (!Y.checkNull(data.Province))
                        $('#Province').val(data.Province);

                    //初始化城市
                    loadCity();
                    if (!Y.checkNull(data.City))
                        $('#City').val(data.City);
                }
            });

            //保存
            $('#save').click(function () {
                //检验提交信息
                if (Y.checkNull($('#ShopCode').val().trim())) {
                    layer.tips('请输入店铺编号', '#ShopCode');
                    return false;
                }
                if (Y.checkNull($('#ShopName').val().trim())) {
                    layer.tips('请输入店铺简称', '#ShopName');
                    return false;
                }
                if (Y.checkNull($('#BusinessStatus').val())) {
                    layer.tips('请输入营业状态', '#BusinessStatus');
                    return false;
                }
                if (Y.checkNull($('#WarehouseArea').val().trim())) {
                    layer.tips('请输入仓库面积', '#WarehouseArea');
                    return false;
                }
                if (Y.checkNull($('#LogisticsTimeDay').val().trim())) {
                    layer.tips('请输入物流时间天', '#LogisticsTimeDay');
                    return false;
                }
                if (Y.checkNull($('#StoreImage').val())) {
                    layer.tips('请输入店铺形象', '#StoreImage');
                    return false;
                }
                if (Y.checkNull($('#OperatingFormat').val())) {
                    layer.tips('请输入经营业态', '#OperatingFormat');
                    return false;
                }
                if (Y.checkNull($('#BusinessArea').val().trim())) {
                    layer.tips('请输入营业面积', '#BusinessArea');
                    return false;
                }
                if (Y.checkNull($('#ShopLevels').val())) {
                    layer.tips('请输入店铺销售级别', '#ShopLevels');
                    return false;
                }
                if (Y.checkNull($('#Levels').val())) {
                    layer.tips('请输入陈列级别', '#Levels');
                    return false;
                }
                if (Y.checkNull($('#BusinessModel').val())) {
                    layer.tips('请输入经营模式', '#BusinessModel');
                    return false;
                }
                if (Y.checkNull($('#SubordinateArea').val())) {
                    layer.tips('请输入隶属运营区域', '#SubordinateArea');
                    return false;
                }
                if (Y.checkNull($('#Year').val())) {
                    layer.tips('请选择年份', '#Year');
                    return false;
                }
                if (Y.checkNull($('#Season').val())) {
                    layer.tips('请选择季节', '#Season');
                    return false;
                }
                layer.msg('玩命加载中……', { icon: 16, shade: 0.5, time: 0, maxWidth: 200 });
                Y.API2('Shop', 'Modify', {
                    SID: sid,
                    Year: (Y.checkNull($('#Year').val())) ? '' : $('#Year').val(),
                    Season: (Y.checkNull($('#Season').val())) ? '' : $('#Season').val(),
                    ShopCode: $("#ShopCode").val(),
                    Levels: $("#Levels").val(),
                    ModifyDate: $("#ModifyDate").val(),
                    Operator: $("#Operator").val(),
                    CreateDate: $("#CreateDate").val(),
                    ShopLevels: $("#ShopLevels").val(),
                    ShopName: $("#ShopName").val(),
                    Province: $("#Province").val(),
                    City: $("#City").val(),
                    SubordinateArea: $("#SubordinateArea").val(),
                    BusinessStatus: $("#BusinessStatus").val(),
                    OpeningDate: $("#OpeningDate").val(),
                    CloseDate: $("#CloseDate").val(),
                    SuspensionDate: $("#SuspensionDate").val(),
                    ResumptionDate: $("#ResumptionDate").val(),
                    BusinessModel: $("#BusinessModel").val(),
                    BusinessArea: $("#BusinessArea").val(),
                    WarehouseArea: $("#WarehouseArea").val(),
                    LogisticsTimeDay: $("#LogisticsTimeDay").val(),
                    StoreImage: $("#StoreImage").val(),
                    BusinessDistrictLevel: $("#BusinessDistrictLevel").val(),
                    OperatingFormat: $("#OperatingFormat").val(),
                    BusinessDistrictType: $("#BusinessDistrictType").val(),
                    ConsumerGroupsOfStudent: $("#ConsumerGroupsOfStudent").val(),
                    ConsumerGroupsOfBlueCollar: $("#ConsumerGroupsOfBlueCollar").val(),
                    ConsumerGroupsOfWhiteCollar: $("#ConsumerGroupsOfWhiteCollar").val(),
                    ConsumerGroupsOfVisitor: $("#ConsumerGroupsOfVisitor").val(),
                    AgeGroup18To22: $("#AgeGroup18To22").val(),
                    AgeGroup23To27: $("#AgeGroup23To27").val(),
                    AgeGroup28To34: $("#AgeGroup28To34").val(),
                    AgeGroup35To40: $("#AgeGroup35To40").val(),
                    LeisureSeries: $("#LeisureSeries").val(),
                    EliteSeries: $("#EliteSeries").val(),
                    CreativeSeries: $("#CreativeSeries").val(),
                    StyleNumber: $("#StyleNumber").val(),
                    FixedFlow: $("#FixedFlow").val(),
                    SpecialNote: $("#SpecialNote").val()
                }, function (data) {
                    layer.closeAll('dialog');
                    if (data.Success == false) {
                        swal(data.Message, '', 'error');
                    } else {
                        swal({
                            title: '修改成功',
                            type: 'success'
                        }, function () {
                            //刷新店铺基本资料页
                            if (window.parent.frames['iframe19'])
                                window.parent.frames['iframe19'].document.getElementById('btn-search').click();

                            //关闭当前页面
                            closeActiveTab();
                        });
                    }
                });
            });
        });
    </script>
</asp:Content>

